package com.ruoyi.web.sso.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.web.sso.domain.DTO.StatusResponse;
import com.ruoyi.web.sso.domain.Performance;
import com.ruoyi.web.sso.domain.PerformanceDetail;
import com.ruoyi.web.sso.domain.Staff;
import org.springframework.data.domain.PageImpl;


/**
* @author admin
* @description 针对表【performance(绩效评估)】的数据库操作Service
* @createDate 2025-02-19 16:19:30
*/
public interface PerformanceService {

    /**
     * 新增或编辑考核 (通过id判断，id为每月的id)
     * @param performanceDetail
     * @return
     */
    StatusResponse saveOrUpdatePerformance(Staff staff, PerformanceDetail performanceDetail);


    /**
     * 详情
     * @param month 月份
     * @param year 年份
     * @param staffId 考核对象id
     * @return
     */
    String detail(Integer month,Integer year,String staffId);


    /**
     * 列表查询
     * @param year
     * @param staffName
     * @return
     */
    PageImpl<Performance> performanceList(Integer pageNum, Integer pageSize, Integer year, String staffName,String areaId);


    /**
     * 删除
     * @param
     * @return
     */
    StatusResponse removePerformance(String id);
}
